package com.design.movieticket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.design.movieticket.common.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@AllArgsConstructor
@NoArgsConstructor
@Data
@SuperBuilder(toBuilder = true)
@TableName("movie")
public class Movie extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    Long id;//影片id

    String movieName;//影片名

    String last;//影片时长

    String movieType;//影片类型

    String still;//剧照

    String introduction;//影片介绍

    String director;//影片导演

    String cast;//影片演员表

    String playWay;//支持放映方式

    int examineStatus;//审核状态/0审核驳回 1审核通过 2审核等待

    String examineBy;//审核人

    int playStatus;//放映状态/0待映 1在映 2下映

}
